<?php
class MyPlugin extends Zend_Controller_Plugin_Abstract {
	public function routeStartup(Zend_Controller_Request_Abstract $request) {
		//		$this->getResponse ()->appendBody ( "<p>routeStartup() called</p>\n" );
	//		$this->timer = new My_Timer ( );
	//		$this->timer->start ();
	//		$view = new Zend_View ( );
	//		$view->books = "123";
	}
	
	public function routeShutdown(Zend_Controller_Request_Abstract $request) {
		//		$this->getResponse ()->appendBody ( "<p>routeShutdown() called</p>\n" );
	}
	
	public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request) {
		//		$this->getResponse ()->appendBody ( "<p>dispatchLoopStartup() called</p>\n" );
	}
	
	public function preDispatch(Zend_Controller_Request_Abstract $request) {
		//		$this->getResponse ()->appendBody ( "<p>preDispatch() called</p>\n" );
	}
	
	public function postDispatch(Zend_Controller_Request_Abstract $request) {
	}
	
	public function dispatchLoopShutdown() {
		Zend_Debug::dump ( $this->getResponse ()->getBody (), "html", false );
	}
}
?>